package main

func isPalindrome(x int) bool {
	if x < 0 {
		return false
	}
	reverse := 0
	n := x
	for n > 0 {
		bit := n % 10
		reverse = reverse*10 + bit
		n /= 10
	}
	return reverse == x
}

func main() {
	println(isPalindrome(10))
}
